package com.wangdao.wechatmall.bean.vo.admin;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author liyongqiang
 * CreateDate 2021/7/9 21:09
 */


@NoArgsConstructor
@Data
public class CategoryVO {
    @JsonProperty("id")
    private Integer id;
    @JsonProperty("name")
    private String name;
    @JsonProperty("keywords")
    private String keywords;
    @JsonProperty("desc")
    private String desc;
    @JsonProperty("pid")
    private Integer pid;
    @JsonProperty("iconUrl")
    private String iconUrl;
    @JsonProperty("picUrl")
    private String picUrl;
    @JsonProperty("level")
    private String level;
    @JsonProperty("children")
    private List<ChildrenDTO> children;

    @NoArgsConstructor
    @Data
    public static class ChildrenDTO {
        @JsonProperty("id")
        private Integer id;
        @JsonProperty("name")
        private String name;
        @JsonProperty("keywords")
        private String keywords;
        @JsonProperty("desc")
        private String desc;
        @JsonProperty("pid")
        private String pid;
        @JsonProperty("iconUrl")
        private String iconUrl;
        @JsonProperty("picUrl")
        private String picUrl;
        @JsonProperty("level")
        private String level;
    }
}

